package org.example.mq.common.exception;

public class MqException extends RuntimeException {
    public MqException(String message) {
        super(message);
        System.err.println("[MqException] " + message); // 自动打印异常信息
    }
    public MqException(String message, Throwable cause) {
        super(message, cause);
        System.err.println("[MqException] " + message);
        cause.printStackTrace(); // 打印原始异常栈信息
    }
}
